/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fatecpg.ads.es3.tp.persistence;

/**
 *
 * @author RDG
 */
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.UIManager;

public class Icone {

    public static void changeIcone() {

        /*---------------------------------------------------------------*/
        /*----------------------Eventos Combobox-------------------------*/
        /*---------------------------------------------------------------*/
        UIManager.put("ComboBox.disabledForeground", Color.BLACK);
        //UIManager.put("ComboBox.background", Color.CYAN);

        /*---------------------------------------------------------------*/

        /*---------------------------------------------------------------*/
        /*----------------------Eventos Textbox--------------------------*/
        /*---------------------------------------------------------------*/
        UIManager.put("TextField.inactiveForeground", Color.BLACK);
        UIManager.put("FormattedTextField.inactiveForeground", Color.BLACK);
        /*---------------------------------------------------------------*/

        /*---------------------------------------------------------------*/
        /*--------------------Eventos FileChooser------------------------*/
        /*---------------------------------------------------------------*/
        UIManager.put("FileChooser.lookInLabelMnemonic", new Integer('E'));
        UIManager.put("FileChooser.lookInLabelText", "Examinar em:");
        UIManager.put("FileChooser.saveInLabelText", "Salvar em:");

        UIManager.put("FileChooser.fileNameLabelMnemonic", new Integer('N'));
        UIManager.put("FileChooser.fileNameLabelText", "Nome do arquivo:");

        UIManager.put("FileChooser.filesOfTypeLabelMnemonic", new Integer('T'));
        UIManager.put("FileChooser.filesOfTypeLabelText", "Tipos de arquivo:");

        UIManager.put("FileChooser.upFolderToolTipText", "Um nível acima");
        UIManager.put("FileChooser.upFolderAccessibleName", "Um nível acima");

        UIManager.put("FileChooser.homeFolderToolTipText", "Área de trabalho");
        UIManager.put("FileChooser.homeFolderAccessibleName", "Área de trabalho");

        UIManager.put("FileChooser.newFolderToolTipText", "Nova pasta");
        UIManager.put("FileChooser.newFolderAccessibleName", "Nova pasta");

        UIManager.put("FileChooser.listViewButtonToolTipText", "Lista");
        UIManager.put("FileChooser.listViewButtonAccessibleName", "Lista");

        UIManager.put("FileChooser.detailsViewButtonToolTipText", "Detalhes");
        UIManager.put("FileChooser.detailsViewButtonAccessibleName", "Detalhes");

        UIManager.put("FileChooser.fileNameHeaderText", "Nome");
        UIManager.put("FileChooser.fileSizeHeaderText", "Tamanho");
        UIManager.put("FileChooser.fileTypeHeaderText", "Tipo");
        UIManager.put("FileChooser.fileDateHeaderText", "Data");
        UIManager.put("FileChooser.fileAttrHeaderText", "Atributos");

        UIManager.put("FileChooser.saveButtonText", "Salvar");
        UIManager.put("FileChooser.cancelButtonText", "Cancelar");
        UIManager.put("FileChooser.openButtonText", "Selecionar");

        UIManager.put("FileChooser.acceptAllFileFilterText", "Todos Arquivos (*.*)");

        UIManager.put("FileChooser.openDialogTitleText", "Abrir");
        UIManager.put("FileChooser.saveDialogTitleText", "Salvar");
        /*---------------------------------------------------------------*/


        /*---------------------------------------------------------------*/
        /*--------------------Eventos OptionPane-------------------------*/
        /*---------------------------------------------------------------*/
        UIManager.put("OptionPane.cancelButtonText", "Cancelar");
        UIManager.put("OptionPane.noButtonText", "Não");
        UIManager.put("OptionPane.okButtonText", "Ok");
        UIManager.put("OptionPane.yesButtonText", "Sim");
        /*---------------------------------------------------------------*/
        //UIManager.getDefaults().put("OptionPane.background", new Color(217, 232, 238));
        //UIManager.put("Panel.background", new Color(217, 232, 238));
    }
    public static void Icone(JFrame frm, String Icone) {
        try {
            frm.setIconImage(frm.getToolkit().getImage(frm.getClass().getResource("/resources/images/" + Icone)));
        } catch (Exception ex) {
            System.out.println(ex.toString());
        }
    }

}
